package com.nicy.dream.form;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import lombok.*;

/**
 * @description:
 * @projectName:dream
 * @see:com.nicy.dream.form
 * @author:NicyYe
 * @createTime:2021/1/27 13:54
 * @version:1.0
 */
@Data
@Setter
@Getter
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ExcelTarget("teacherEntity")
public class TeacherEntity {
    @Excel(name = "教师编号",needMerge = true)
    private String tid;
    /** name */
    @Excel(name = "主讲老师_major,代课老师_absent", orderNum = "1", isImportField = "true_major,true_absent",needMerge = true)
    private String name;

    @Excel(name = "备注",width = 25,isWrap = true)
    private String remark;

    /**
     *
     * @return
     */
    @Override
    public String toString(){

        return "教师编号："+this.tid+"\r\n"+"教师名称："+this.name;
    }
}
